package com.efounder.bean;

import java.util.List;

/**
 * Created by wei on 2018/2/27/027.
 */

public class CommentDatas {

    /**
     * result : success
     * "commentPercent": "100.0%",
     "commentCount": 1
     * comments : [{"commentId":1,"userName":"闫庆松","userAvatar":"https://panserver.solarsource.cn/panserver/files/4521ef31-78d7-482e-8f81-ec2a13109ea2/download","grade":5,"userId":"116135","goodBh":"001161350000017","content":"挺不错的","time":1519624369000,"commentPics":[{"id":1,"commentId":1,"commentPicUrl":"https://img30.360buyimg.com/n0/s48x48_jfs/t16480/314/2119233037/85100/cd298d79/5a91087dN9e262818.jpg"},{"id":2,"commentId":1,"commentPicUrl":"https://img30.360buyimg.com/n0/s48x48_jfs/t17782/319/512327857/123286/531450fe/5a91087eNcba9ebed.jpg"}]}]
     */

    private String result;
    private String commentPercent;
    private int commentCount;
    private List<Comments> comments;

    public String getCommentPercent() {
        return commentPercent;
    }

    public void setCommentPercent(String commentPercent) {
        this.commentPercent = commentPercent;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public List<Comments> getComments() {
        return comments;
    }

    public void setComments(List<Comments> comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        return "CommentDatas{" +
                "result='" + result + '\'' +
                ", comments=" + comments +
                '}';
    }

    public static class Comments {
        /**
         * commentId : 1
         * userName : 闫庆松
         * userAvatar : https://panserver.solarsource.cn/panserver/files/4521ef31-78d7-482e-8f81-ec2a13109ea2/download
         * grade : 5
         * userId : 116135
         * goodBh : 001161350000017
         * content : 挺不错的
         * time : 1519624369000
         * commentPics : [{"id":1,"commentId":1,"commentPicUrl":"https://img30.360buyimg.com/n0/s48x48_jfs/t16480/314/2119233037/85100/cd298d79/5a91087dN9e262818.jpg"},{"id":2,"commentId":1,"commentPicUrl":"https://img30.360buyimg.com/n0/s48x48_jfs/t17782/319/512327857/123286/531450fe/5a91087eNcba9ebed.jpg"}]
         */

        private int commentId;
        private String userName;
        private String userAvatar;
        private int grade;
        private String userId;
        private String goodBh;
        private String content;
        private long time;
        private List<CommentPics> commentPics;

        public int getCommentId() {
            return commentId;
        }

        public void setCommentId(int commentId) {
            this.commentId = commentId;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getUserAvatar() {
            return userAvatar;
        }

        public void setUserAvatar(String userAvatar) {
            this.userAvatar = userAvatar;
        }

        public int getGrade() {
            return grade;
        }

        public void setGrade(int grade) {
            this.grade = grade;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public String getGoodBh() {
            return goodBh;
        }

        public void setGoodBh(String goodBh) {
            this.goodBh = goodBh;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public List<CommentPics> getCommentPics() {
            return commentPics;
        }

        public void setCommentPics(List<CommentPics> commentPics) {
            this.commentPics = commentPics;
        }

        @Override
        public String toString() {
            return "Comments{" +
                    "commentId=" + commentId +
                    ", userName='" + userName + '\'' +
                    ", userAvatar='" + userAvatar + '\'' +
                    ", grade=" + grade +
                    ", userId='" + userId + '\'' +
                    ", goodBh='" + goodBh + '\'' +
                    ", content='" + content + '\'' +
                    ", time=" + time +
                    ", commentPics=" + commentPics +
                    '}';
        }

        public static class CommentPics {
            /**
             * id : 1
             * commentId : 1
             * commentPicUrl : https://img30.360buyimg.com/n0/s48x48_jfs/t16480/314/2119233037/85100/cd298d79/5a91087dN9e262818.jpg
             */

            private int id;
            private int commentId;
            private String commentPicUrl;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getCommentId() {
                return commentId;
            }

            public void setCommentId(int commentId) {
                this.commentId = commentId;
            }

            public String getCommentPicUrl() {
                return commentPicUrl;
            }

            public void setCommentPicUrl(String commentPicUrl) {
                this.commentPicUrl = commentPicUrl;
            }

            @Override
            public String toString() {
                return "CommentPics{" +
                        "id=" + id +
                        ", commentId=" + commentId +
                        ", commentPicUrl='" + commentPicUrl + '\'' +
                        '}';
            }
        }
    }
}
